import { Alova } from '@/utils/http/alova/index';
// export interface ListDate {
//   label: string;
//   key: string;
//   type: number;
//   subtitle: string;
//   openType: number;
//   auth: string;
//   path: string;
//   children?: ListDate[];
// }

export interface ListDate {
  createTime: string;
  jobId: number;
  jobTitle: string;
  payrollRange: string;
  payrollUnit: string;
  workAddress: Array<string>;
}

/**
 * @description: 根据用户id获取用户菜单
 */
export function adminMenus() {
  return Alova.Get('/menus');
}

/**
 * 获取tree菜单列表
 * @param params
 */
export function getJobs(params?) {
  return Alova.Get<{ list: ListDate[] }>('/v1/jobs', {
    params,
  });
}
